package com.hopes.bizz.basic.gis.vo.hazard;

import lombok.Data;

import java.io.Serializable;
import java.util.Optional;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 传感器分类统计
 * @time 2024/1/18 19:20
 */
@Data
public class HazSensorClassifyVO implements Serializable {

    private static final long serialVersionUID = 8347489890254857237L;

    /**
     * 监控因子
     */
    private Long factorId;

    /**
     * 统计数量
     */
    private Integer number;

    /**
     * 监测因子名称
     */
    private String factorIdStr;


    public HazSensorClassifyVO(Long factorId, Integer number, String factorIdStr) {
        this.factorId = factorId;
        this.factorIdStr = factorIdStr;
        this.number = Optional.ofNullable(number).orElse(0);
    }

}
